/**
 * File: NodeStatusReset.java
 * Created by: mhaimel
 * Created on: Mar 25, 2010
 * CVS:  $Id: NodeStatusReset.java 1.0 Mar 25, 2010 11:02:41 AM mhaimel Exp $
 */
package uk.ac.ebi.curtain.model.graph.impl;

import uk.ac.ebi.curtain.model.graph.Node;
import uk.ac.ebi.curtain.model.graph.GraphAccess.TouchEach;

/**
 * @author mhaimel
 *
 */
public class NodeStatusReset<N,A> implements TouchEach<Node<N, A>> {
	private final int status;
	public NodeStatusReset(int status) {
		this.status = status;
	}
	@Override
	public void touch(Node<N, A> node) {
		node.getStatus().set(status);
	}
}
